import { Injectable } from '@angular/core';
import { HOSTURL, PREFIX } from '../../config';
import { RequestClientService } from '../request-client.service';

@Injectable({
  providedIn: 'root'
})
export class DashboardService {

  constructor(
    private requestClientService: RequestClientService
  ) { }

  // 获取图表数据
  public async getEchartsValue(params) {
    const res = await this.requestClientService.post(HOSTURL + `/api/services/${PREFIX}/Reports/QueryChecksMonthReport`, params);
    return res;
  }

}
